<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    {{info}}
    <!--在属性名称前面加上一个: 则变成属性绑定,让xxx属性的值和变量进行绑定-->
    <input type="text" :value="info">
    <!--属性绑定的复杂版-->
    <input type="text" v-bind:value="info">
    <a :href="url">超链接</a>
    <img :src="imgName" alt="">
    <p v-text="info"></p>
</div>
<script src="js/vue.min.js"></script>
<script>
    let v = new Vue({
        el: "body>div",
        data: {
            info: "属性绑定测试",
            url:"http://www.baidu.com",
            imgName:"a.jpg"
        }
    })
</script>
</body>
</html>